package com.jsyxdl.mapper;

import org.apache.ibatis.annotations.Param;

import java.math.BigInteger;
import java.util.List;
import java.util.Map;

public interface ErpK3cloudMapper {
    List<Map<String,Object>> getOptions(@Param("code") String code,@Param("k3cloud") String k3cloud);
    List<Map<String,Object>> getExecutionType(@Param("code") String code,@Param("k3cloud") String k3cloud);
    List<Map<String,Object>> getInTreeMap(@Param("code") String code,@Param("k3cloud") String k3cloud);
    List<Map<String,Object>> getOutTreeMap(@Param("code") String code,@Param("k3cloud") String k3cloud);
    List<Map<String, Object>> getOptionsByPlmCodeAndK3cloudFormId(@Param("plmCode") String code,
                                                                  @Param("k3cloudFormId") String k3cloud);
    List<Map<String,Object>> getBaseCode(@Param("classId") BigInteger classId);

    List<Map<String, Object>> getExecutionTypeByPlmCodeAndK3cloudFormId(@Param("plmCode") String code,
                                                                        @Param("k3cloudFormId") String k3cloudFormId);

    List<Map<String, Object>> getInTreeMapByPlmCodeAndK3cloudFormId(@Param("plmCode") String code,
                                                                    @Param("k3cloudFormId") String k3cloudFormId);

    List<Map<String, Object>> getOutTreeMapByPlmCodeAndK3cloudFormId(@Param("plmCode") String code,
                                                                     @Param("k3cloudFormId") String k3cloudFormId);
    int saveLogs(
            @Param("plm_code") String plm_code,
            @Param("erp_code") String erp_code,
            @Param("id") String id,

                                       @Param("plm_data") String plm_data,
                                       @Param("erp_result") String erp_result,
                                       @Param("plm_setting_object") String plm_setting_object,
                                       @Param("plm_setting_code") String plm_setting_code,
                                       @Param("plm_exception") String plm_exception
                                       );

}
